home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Diamond Collection
/
The Diamond Collection (Software Vault)(Digital Impact).ISO
/
cdr48
/
arc11.zip
/
ARCADE.DOC
next >
Wrap
Text File
|
1995-02-22
|
6KB
|
428 lines
ARCADE v2.00e
by Kyle J. Davis
DISCLAIMER
ARCADE IS PROVIDED AS IS WITH NO FORM OF WARRANTY AND IS NOT
RESPONSIBLE FOR ANY LOST DATA OR MONEY IN REATION TO IT.
IBM AT is owned by IBM corporation
INTRODUCTION
Arcade (formally Dez-X) is a programming language written for
the IBM AT and compatibles. It is an inturpitive language that
can *not* compile to an EXE. It relies on DBF files that contain
program information. This language is a little hard to
understand at first, it is different form most other programming
languages (PLS) because it dose not rely on any sort of known
syntax, for instance in Pascal your would write WRITELN('HELLO
WORLD'); in a source file or in basic you would write 10 Print
"hello world" but in arcade you would go to a dbf file that
contains the template and enter 001 for the command and for
string_1 you would put Hello World and in X1 you would put your
X coordinates in and in Y1 your Y cordnates in ( it this
document it will be written like this
C: command
S1: string_1
S2: string_2
X1: X1
Y1: Y1
X2: X2
Y2: Y2
BR: BYTE RANGE
).
____ Chapter 1: My first program
In Arcade getting started is the hardest part of learning it.
Now we are going to write a program that will clear the screen,
ask for your name, store your name, ask for your age, store it
and then put a message box that tells your age and name.
LISTING 1-1 - DEMO11.DBF on disk
C: 006
S1:
S2:
X1: 000
Y1: 000
X2: 000
Y2: 000
BR: 000
As you can see I have put 0 (the number) in front of all the
numbers, you must do this for Arcade to understand it. I have
also put 000 in all the blanks, this is not required but is
helpful.
C:001
S1: Please enter your name:
S2:
X1: 010
Y1: 010
X2: 000
Y2: 000
BR: 000
Command 001 is arcades writing procedure, S1 stores the string
to be displayed and X1 and Y1 are just for the coordinates.
C: 002
S1:
S2:
X1:020
Y1: 020
X2: 000
Y2: 000
BR:000
Command 002 is the command for read from the keyboard, again
X1 and Y1 store the coordinates.
C:015
S1:
S2:
X1:002
Y1:000
X2:000
Y2:000
BR:000
Command 015 will push the one internal variable to the Dynamic
Stack Array (DSA) which is where all of the variables except one
will be stored. Basically it will take the stuff that you read
from the keyboard and will put in to segment 002(X1) of the DSA.
C:001
S1: Please enter your age:
S2:
X1:030
Y1:030
X2:000
Y2:000
BR:000
-------------
C: 002
S1:
S2:
X1:040
Y1:040
X2:000
Y2:000
BR:000
---------------------
C:009
S1: You Are:
S2:
X1:100
Y1:100
X2:250
Y2: 250
BR:000
Command 009 will produce a window with a header (S1) in a shape
like this:
X1 Y1
======================
| |
| |
======================
X2 Y2
C: 003
S1:
S2:
X1: 001
Y1: 001
X2: 000
Y2: 000
BR: 000
Command 003 basically dumps the contents of the internal
variable and then places at X1 and Y1.
C: 016
S1:
S2:
X1: 002
Y1: 000
X2: 000
Y2: 000
BR: 000
Command 16 is command 15's counterpart, it takes the string 1
from segment 1 of the DSA and places it in to the internal
variable.
C:003
S1:
S2:
X1:010
Y1: 010
X2: 000
Y2: 000
BR: 000
That's a very basic program in Arcade.
___ Chapter 2: Reference
Commands:
001: Places text on the screen; uses S1, X1,Y1
002: Reads text from the screen; uses S1, X1,Y1
003: Dumps the contents of internal variable to the screen at
X1, and Y1; uses X1, Y2
004: Sets the color of the foreground; uses BR
005: Sets the color of the Background; uses BR
006: Clears the Screen or window; uses none
007: puts a Clip Sprite on the screen; uses S1, X1, Y1
008: Displays the Program Done message
009: Creates a window; uses S1 (name), X1,Y1,X2,Y2
010: Removes the window handle
011: Draws A line; uses X1,Y1,X2,Y2
012: Draws a Rectangle; uses X1,Y1,X2,Y2
013: Inputs with a prompt; uses X1,Y1, S1
014: Creates A child process, runs another Arcade Program; uses
S1
015: Pushes the internal variable to the DSA at segment X1; uses
X1
016: Pulls the DSA at segment X1 to the internal variable; uses
X1
017: Compares DSA string value at segment X1 to S1, if they
match it runs the file in S2; uses S1,S2,X1
018: Compares DSA numeric value at segment Y1 to X1, if match
occurs it runs the file in S1 uses X1,Y1,S1
019: Defines a numeric variable on the DSA at segment Y1; uses
X1,Y1
020: Defines a string variable on the DSA at segment X1; uses
X1,S1
___ Chapter 6
If you wish to distribute or sell your program you should
register the program an receive the run-time module that
contains to notices.
Price Name Disc.
$15.00 Arcade RT Distribute, free updates, more examples
$25.00 Arcade GRT Includes special game functions such as 256
color graphics, ect, ect. Includes every thing above
$45.00 Arcade+ Limited windows use, game pack, all above
$325.00 Arcade NX2 The ultimate arcade interpreter includes
all above and many utilities that help you program, such
as a flow chart program, a RAD ect. ect.
Send orders to
Kyle Davis
106 Forest Lane
Madisonville Ky 42431